import type { IQuery, IResponse, TableResponse } from '@/api/config/types';
import axios from 'axios'; // 确保导入了正确的 axios 实例或配置
export interface IAudit {
  uid: string;
  parentUid: null;
  platform: string;
  extendParams: string;
  userId: null;
  retryTm: number;
  notice: null;
  sid: string;
  status: string;
}
const prefix = 'saas/map';

export const saasMapList = (query?: IQuery) => {
  return axios.get<TableResponse<IAudit>>(`${prefix}/list`, { params: query });
};

export const auditActive = (query: { uid: string; extendParams: string }) => {
  return axios.post<IResponse<any>>(`${prefix}/active`, query);
};
